<div class="tags">
<h2>List Tags</h2>
<table cellpadding="0" cellspacing="0">
<tr>
	<th><?php echo $paginator->sort('id');?></th>
	<th><?php echo $paginator->sort('linked');?></th>
	<th><?php echo $paginator->sort('name');?></th>
	<th><?php echo $paginator->sort('keyname');?></th>
	<th>Actions</th>
</tr>
<?php
$i = 0;
foreach($tags as $tag):
	if($i++ % 2 == 0) {
		$class = ' class="altrow"';
	} else {
		$class = null;
	}
?>
	<tr<?php echo $class;?>>
		<td>
			<?php echo $tag['Tag']['id']?>
		</td>
		<td>
			<?php echo $tag['Tag']['linked']?>
		</td>
		<td>
			<?php echo $tag['Tag']['name']?>
		</td>
		<td>
			<?php echo $tag['Tag']['keyname']?>
		</td>
		<td class="actions">
			<?php echo $html->link('View', array('action'=>'view', $tag['Tag']['id'])); ?>
			<?php echo $html->link('Edit', array('action'=>'edit', $tag['Tag']['id'])); ?>
			<?php echo $html->link('Delete', array('action'=>'delete', $tag['Tag']['id']), null, 'Are you sure you want to delete #' . $tag['Tag']['id']); ?>
		</td>
	</tr>
<?php endforeach; ?>
</table>
</div>
<div class="paging">
	<?php echo $paginator->prev('<< previous', array(), null, array('class'=>'disabled'));?>
 | 	<?php echo $paginator->numbers();?>
	<?php echo $paginator->next('next >>', array(), null, array('class'=>'disabled'));?>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link('New Tag', array('action'=>'add')); ?></li>
		<li><?php echo $html->link('List Articles', array('controller'=> 'articles', 'action'=>'index')); ?> </li>
		<li><?php echo $html->link('New Article', array('controller'=> 'articles', 'action'=>'add')); ?> </li>
	</ul>
</div>